package ru.pb.game.network.engine.client.packets.receivable;

import ru.pb.game.network.engine.client.packets.FromClientToGameServerPacket;
import ru.pb.game.network.engine.client.packets.sendable.PROTOCOL_BATTLE_ENDBATTLE_ACK;
import ru.pb.game.network.engine.client.packets.sendable.opcode_3906_ACK;
import ru.pb.game.objects.model.players.Player;

public class opcode_3906_REQ extends FromClientToGameServerPacket
{
	private int unk;
	public opcode_3906_REQ() 
	{
		
	}

	@Override
	public void readImpl() 
	{
		unk = readH();
	}

	@Override
	public void runImpl() 
	{
		Player p = getPlayer();
		getClient().sendPacket(new opcode_3906_ACK(unk));
		getClient().sendPacket(new PROTOCOL_BATTLE_ENDBATTLE_ACK(p));
	}
}
